﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<title>蓝领</title>
<!---------------------------------- 页面基本设置禁止随意更改 ------------------------------------------>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="index" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
<meta name="renderer" content="webkit" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!---------------------------------- 页面基本设置禁止随意更改 -------------------------------------------->
<!---------------------------------- 基础CSS类库可随意更改 ---------------------------------------------->
<link type="text/css" rel="stylesheet" href="{yun:}$config.sy_weburl{/yun}/app/template/jingjiren/css/reset.css?v={yun:}$config.cachecode{/yun}" />
<link type="text/css" rel="stylesheet" href="{yun:}$config.sy_weburl{/yun}/app/template/jingjiren/css/pin.css?v={yun:}$config.cachecode{/yun}" />
<!---------------------------------- 基础CSS类库可随意更改结束 -------------------------------------------->
<!---------------------------------- 基础js类库可随意更改 ---------------------------------------->
<script type="text/javascript" src="{yun:}$config.sy_weburl{/yun}/app/template/jingjiren/js/jquery.1.11.3.min.js?v={yun:}$config.cachecode{/yun}"></script>
<script type="text/javascript" src="{yun:}$config.sy_weburl{/yun}/js/layui/layui.js?v={yun:}$config.cachecode{/yun}"></script>
<script type="text/javascript" src="{yun:}$config.sy_weburl{/yun}/js/layui/phpyun_layer.js?v={yun:}$config.cachecode{/yun}"></script>
<script type="text/javascript" src="{yun:}$config.sy_weburl{/yun}/app/template/jingjiren/js/jquery.1.11.3.min.js?v={yun:}$config.cachecode{/yun}"></script>
<!---------------------------------- 基础js类库可随意更改 ---------------------------------------->
    <script>
        weburl = "{yun:}$config.sy_weburl{/yun}";
    </script>
</head>
<body>
   <div class="pin_box pin_tbox pin_sbox">
        <!-----------------头部标题开始----------------->
        <div class="pin_title">
        	<a href="index.php?c=myinfo" class="titleback"></a>
            <span class="titlename">我的资料</span>
        </div>
        <!-----------------头部标题结束----------------->
   	    <div class="pin_bcon">
        	<div class="pin_scroll">
                <div class="pin_form">
                	<div class="pin_form_list">
                    	<div class="form_listl">头像</div>
                    	<div class="form_listr">
                             <div class="upload_header">
                             	<img src="{yun:}$user.user_avatar{/yun}" class="headicon"  id="jsupload_icon">
                                <!--<input type="file" class="upload_file" id="jsupload_file" accept="image/*" mutiple="mutiple" >-->
                             </div>
                         </div>
                    </div>
                    <div class="pin_form_list">
                    	<div class="form_listl">姓名</div>
                    	<div class="form_listr"><input type="text" disabled="disabled" value="{yun:}$user.realname{/yun}" class="infoinput" id="name" name="name"/></div>
                    </div>
                    <!--<div class="pin_form_list">-->
                    	<!--<div class="form_listl">性别</div>-->
                    	<!--<div class="form_listr"> <input type="text"  value="{yun:}$user.sex_value{/yun}" class="infoinput"/></div>-->
                    <!--</div>-->
                    <div class="pin_form_list">
                    	<div class="form_listl">电话</div>
                    	<div class="form_listr"><input type="text" disabled="disabled" value="{yun:}$user.mobile{/yun}" class="infoinput" id="mobile" name="mobile"/></div>
                    </div>
                    <div class="pin_form_list">
                    	<div class="form_listl">微信</div>
                    	<div class="form_listr"><input type="text" disabled="disabled" value="{yun:}$user.wechat_number{/yun}" class="infoinput"/></div>
                    </div>
                </div>
                
                <!--<div class="pin_form_btn">-->
                	<!--<input type="button" class="pin_btn pin_alonebtn" value="修改个人信息" onClick="handlesave('{yun:}url m=jingjiren c=myinfo_save{/yun}');">-->
                <!--</div>-->
                
            </div>
        </div>
   </div>
   
<script type="text/javascript">
/*上传图片预览开始*/
   var inp=document.getElementById('jsupload_file');
   var img=document.getElementById('jsupload_icon')
	inp.onchange=function(){	
	    var file=this.files[0]   // 获取input上传的图片数据;
        var url=window.URL.createObjectURL(file)  // 得到bolb对象路径，可当成普通的文件路径一样使用，赋值给src;
        img.src=url;
	   }

/*上传图片预览结束*/
</script>
   
</body>
</html>
<script type="text/javascript">
    function handlesave(url){

        var name=$("#name").val();
        var mobile=$("#gather_time").val();



        if(name==''){
            layer.msg('名字不能为空！', 2, 8);return false;
        }
        if(mobile==''){
            layer.msg('手机号不能为空！', 2, 8);return false;
        }

        $.post(url,{
            name:name,
            mobile:mobile,


        },function(data){
            var data=eval('('+data+')');

            if(data.url){
                window.location.href=data.url;
            }else{

                //alert("11111");
                layer.msg(data.msg, 2, 8);
            }
        })
    }
</script>
